﻿
public class Request_FetchUserInfos : RequestBase
{

    public const string Key = "FetchUserInfos";

    public FetchUserInfosRequestData fetchUserInfosReqData = new FetchUserInfosRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return fetchUserInfosReqData;
        }
    }

    public Request_FetchUserInfos() : base()
    {
        MessagePacket.key = Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"发送FetchUserInfos请求：{fetchUserInfosReqData.userIds?.Length}");
    }

    public override ResponseData NewResponseData() => new FetchUserInfoResponseData();

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_FetchUserInfos();
    //}
}
//public class Response_FetchUserInfos : ResponseBase
//{
//    public FetchUserInfoResponseData userInfosResponseData => this.responseData as FetchUserInfoResponseData;

//    public override ResponseData NewResponseData() => new FetchUserInfoResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Request_FetchCandidates -> Excuate");

//        (this.request as Request_FetchUserInfos)?.onResponse?.Invoke(this);
//    }
//}
